<h1>Listing staffs</h1>

<%= link_to 'New Staff', new_staff_path %> | <%= link_to 'Back to Appointments List', appointments_path %></br>
<table border="1">
  <thead>
    <tr>
      <th>Staff role</th>
      <th>Full name</th>
      <th>Dob</th>
      <th>Active</th>
    </tr>
  </thead>

  <tbody>
    <% @staffs.each do |staff| %>
      <tr>
        <td><%= staff.staff_role.label %></td>
        <td><%= link_to staff.full_name, staff %></td>
        <td><%= staff.dob %></td>
        <td><%= staff.active %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>


